/*
 * Powered By XY
 * Since 2020
 */

package com.xy.biz.base.dao;

import com.xy.biz.base.domain.po.BomEquipmentPO;
import com.xy.biz.base.domain.query.BomEquipmentQuery;

import java.util.Collection;
import java.util.List;

/**
 *
 *
 * @author zgy
 * @date 2022-3-7
 */
public interface BomEquipmentDao {

	/**
	 * 保存
	 *
	 * @param bomEquipmentPO
	 */
	int saveBomEquipment(BomEquipmentPO bomEquipmentPO);

	/**
	 * 保存多个
	 *
	 * @param collection
	 */
	int saveAllBomEquipment(Collection<BomEquipmentPO> collection);

	/**
	 * 更新
	 *
	 * @param bomEquipmentPO
	 */
	int updateBomEquipment(BomEquipmentPO bomEquipmentPO);

	/**
	 * 删除
	 *
	 * @param bomEquipmentId
	 */
	int deleteBomEquipment(Long bomEquipmentId);
	int deleteBomEquipmentByBomId(Long bomId);

	/**
	 * 查找一个
	 *
	 * @param bomEquipmentId
	 * @return
	 */
	BomEquipmentPO getBomEquipment(Long bomEquipmentId);

	/**
	 * 查找多条
	 *
	 * @param collection
	 * @return
	 */
	List<BomEquipmentPO> listBomEquipmentById(Collection<Long> collection);

	/**
	 * 条件查找多条
	 *
	 * @param query 查找条件
	 * @return
	 */
	List<BomEquipmentPO> listBomEquipment(BomEquipmentQuery query);

	/**
	 * 条件统计个数
	 *
	 * @param query 查找条件
	 * @return
	 */
	int countBomEquipment(BomEquipmentQuery query);

}
